VERSION 5.00
Begin VB.Form frmManuel 
   BorderStyle     =   5  'Sizable ToolWindow
   Caption         =   "Manuel"
   ClientHeight    =   8655
   ClientLeft      =   60
   ClientTop       =   330
   ClientWidth     =   8175
   Icon            =   "frmManuel.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   8655
   ScaleWidth      =   8175
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  'Windows Default
   Begin VB.Frame Frame5 
      Caption         =   "Object"
      Height          =   1215
      Left            =   120
      TabIndex        =   8
      Top             =   2520
      Width           =   7935
      Begin VB.TextBox txtCode 
         BeginProperty Font 
            Name            =   "Terminal"
            Size            =   9
            Charset         =   255
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   285
         Left            =   240
         Locked          =   -1  'True
         TabIndex        =   11
         Top             =   720
         Width           =   7455
      End
      Begin VB.Label Label2 
         BackStyle       =   0  'Transparent
         Caption         =   "Use this code to create the object:"
         Height          =   255
         Left            =   240
         TabIndex        =   10
         Top             =   360
         Width           =   2535
      End
   End
   Begin VB.Frame Frame4 
      Caption         =   "Manuel File"
      Height          =   2175
      Left            =   120
      TabIndex        =   7
      Top             =   120
      Width           =   7935
      Begin VB.FileListBox File 
         BeginProperty Font 
            Name            =   "Terminal"
            Size            =   9
            Charset         =   255
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   1350
         Left            =   240
         Pattern         =   "*.dat*"
         TabIndex        =   9
         Top             =   360
         Width           =   7455
      End
   End
   Begin VB.Frame Frame3 
      Caption         =   "Usage"
      Height          =   2415
      Left            =   120
      TabIndex        =   3
      Top             =   6120
      Width           =   7935
      Begin VB.TextBox txtUse 
         BeginProperty Font 
            Name            =   "Terminal"
            Size            =   9
            Charset         =   255
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   1815
         Left            =   240
         Locked          =   -1  'True
         MultiLine       =   -1  'True
         ScrollBars      =   2  'Vertical
         TabIndex        =   6
         Top             =   360
         Width           =   7455
      End
   End
   Begin VB.Frame Frame2 
      Caption         =   "Parameters"
      Height          =   855
      Left            =   120
      TabIndex        =   2
      Top             =   5040
      Width           =   7935
      Begin VB.TextBox txtParam 
         BeginProperty Font 
            Name            =   "Terminal"
            Size            =   9
            Charset         =   255
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   285
         Left            =   240
         Locked          =   -1  'True
         TabIndex        =   5
         Top             =   360
         Width           =   7455
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "Command"
      Height          =   855
      Left            =   120
      TabIndex        =   0
      Top             =   3960
      Width           =   7935
      Begin VB.ComboBox cboCmd 
         BeginProperty Font 
            Name            =   "Terminal"
            Size            =   9
            Charset         =   255
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   300
         Left            =   3960
         Style           =   2  'Dropdown List
         TabIndex        =   1
         Top             =   360
         Width           =   3735
      End
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Caption         =   "Select a command to see parameters and usage:"
         Height          =   255
         Left            =   240
         TabIndex        =   4
         Top             =   360
         Width           =   3495
      End
   End
End
Attribute VB_Name = "frmManuel"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private cmd() As String
Private param() As String
Private about() As String

Private Sub cboCmd_Click()
txtParam.Text = param(cboCmd.ListIndex)
txtUse.Text = about(cboCmd.ListIndex)
End Sub

Private Sub File_Click()
Dim i As Integer
Dim blablasid As String
cboCmd.Clear
txtParam.Text = vbNullString
txtUse.Text = vbNullString
Open Pathify(File.FileName) For Input As #1
    Line Input #1, blablasid
    Line Input #1, blablasid
    txtCode.Text = blablasid
    Line Input #1, blablasid
    While Not EOF(1)
        ReDim Preserve cmd(i)
        ReDim Preserve param(i)
        ReDim Preserve about(i)
        Line Input #1, cmd(i)
        Line Input #1, param(i)
        Line Input #1, about(i)
        i = i + 1
    Wend
Close #1
For i = 0 To UBound(cmd)
    cboCmd.AddItem blablasid & "." & cmd(i)
Next i
End Sub

Private Sub Form_Load()
File.Path = App.Path
End Sub

Private Function Pathify(strFile As String) As String
If Len(App.Path) < 4 Then
    Pathify = App.Path & strFile
Else
    Pathify = App.Path & "\" & strFile
End If
End Function
